<div class="container-fluid" style="padding: 20px 10px 0px 10px">
	<div class="row-fluid">
		<div class="well">
		    <ul class="nav nav-tabs">
		      <li class="active"><b>录入信息</b></li>
		    </ul>
		    <div id="myTabContent" class="tab-content">
				<div class="tab-pane active in" id="home">
					<form id="formid" action="/index/addInput" method="post">
						<p>卡券编号：<input type="text" placeholder="卡券编号" name="card_number" class="card_number" value="<?=$getData['card_number']?>" <?=$is_update?'readonly':''?>></p>
						<p>组会地点：<input type="text" placeholder="组会地点" name="group_address" class="group_address" value="<?=$getData['group_address']?>"></p>
                        <p>顾客名称：<input type="text" placeholder="顾客名称" name="user_name" class="user_name" value="<?=$getData['user_name']?>"></p>
                        <!-- <p>店家名称：<input type="text" placeholder="店家名称" name="shopper" class="shopper" value="<?=$getData['shopper']?>"></p>
                        <p>服务商：<input type="text" placeholder="服务商" name="servicer" class="servicer" value="<?=$getData['servicer']?>"></p>
                        <p>咨询师：<input type="text" placeholder="咨询师" name="counselor" class="counselor" value="<?=$getData['counselor']?>"></p>
                        <p>设计师：<input type="text" placeholder="设计师" name="designer" class="designer" value="<?=$getData['designer']?>"></p>
                        <p>课长：<input type="text" placeholder="课长" name="director" class="director" value="<?=$getData['director']?>"></p>
                        <p>课室：<input type="text" placeholder="课室" name="classroom" class="classroom" value="<?=$getData['classroom']?>"></p> -->
                        <p>微雕机器操作人：<input type="text" placeholder="微雕机器操作人" name="machine_operator" class="machine_operator" value="<?=$getData['machine_operator']?>"></p>
                        <p>配药操作人：<input type="text" placeholder="配药操作人" name="dispens_operator" class="dispens_operator" value="<?=$getData['dispens_operator']?>"></p>
                        <p>注射操作人：<input type="text" placeholder="注射操作人" name="injection_operator" class="injection_operator" value="<?=$getData['injection_operator']?>"></p>
                        <p>乐力果精华(瓶)：<input type="text" placeholder="瓶" name="dosage" class="dosage" value="<?=$getData['dosage']?>"></p>

						<input type="hidden" value="<?=$getData['id']?>" name="id" />
						<input type="hidden" value="1" name="dosubmit" />
					</form>
				</div>
				<div class="btn-toolbar">
				    <button class="btn btn-primary" id="btn-save" style="margin:18px 0 0 70px"><i class="icon-save"></i> 保存发布</button>
				  <div class="btn-group">
				  </div>
				</div>
			</div>
		</div>
	</div>
</div>
<script>
$(function(){
	$('#btn-save').click(function(){
		if(!($('.card_number').val())){
			showmsg('卡券编号不能为空');
			return false;
		}else if(!$('input[name=input_time]').val()){
            showmsg('组会时间不能为空');
            return false;
        }else if(!$('input[name=group_address]').val()){
            showmsg('组会地点不能为空');
            return false;
        }else if(!$('input[name=user_name]').val()){
            showmsg('顾客名称不能为空');
            return false;
        }else if(!$('input[name=machine_operator]').val()){
            showmsg('微雕机器操作人不能为空');
            return false;
        }else if(!$('input[name=dispens_operator]').val()){
            showmsg('配药操作人不能为空');
            return false;
        }else if(!$('input[name=injection_operator]').val()){
            showmsg('注射操作人不能为空');
            return false;
        }else if($('input[name=dosage]').val() == ''){
            showmsg('用量不能为空');
            return false;
        }else{
			setBtn($('#btn-save'));
			$('#formid').submit();
		}

	});
    $('.setImdBtn').click(function(){
        $('#setImd').selfups();
    });
})
</script>